package com.app.model;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;

import java.sql.Timestamp;
import java.time.LocalDateTime;
import java.io.Serializable;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.annotation.JsonInclude;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;

/**
 * 获奖信息表
 * @author 16693103420
 * @since 2024-01-25
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@TableName("tb_award_info")
@JsonInclude(JsonInclude.Include.NON_NULL)
public class AwardInfoModel implements Serializable {
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;//获奖信息表ID
    private String phone;//手机号
    private Integer userId;//用户ID
    private String prizeName;//奖品名称
    private Integer activityId;//活动ID

    @TableField(exist = false)
    private String phoneMi;//手机号
    @TableField(exist = false)
    private String pastTime;//过去时间
    @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8") //后端注解格式化日期
    private Timestamp createTime;
}
